# -*- coding: utf-8; mode: snippet -*-
# name: loop key/value object
# key: foreach
# --
for (var k in ${1:obj}) {
  if ($1.hasOwnProperty(k)) {
    var ${2:val} = $1[k];
    $0 
  }
}
